package com.jz.digital.bean

object ServerBean {
    data class GXInfo(var basId: String?, var basName: String?)

    /**
     *@param mode 工序汇报固定传:2 生产入库固定传:1 销售出库固定传:5
     * @param type GX，返回工序列表，单选\n" +
     *             "’GY’，返回工艺列表，单选\n" +
     *             "’JT’，返回机台列表，单选\n" +
     *             "’BZ’，返回班组列表，单选\n" +
     *             "’BL’，返回不良原因列表
     */
    data class GXInfoRequest(val mode: Int, val type: String, val gx: String? = "")

    data class GXReportRequest(
        val mode: Int, val barcode: String?, var wk_id: String?,
        val wk_name: String?, val pda: String?, val no1: String?,val no9: String?
        , val no6: String?
        , val no7: String?
        , val no8: String?, val no10: String?,
        val qty3:Int,val qty4:Int
    )

    data class GXReportResponse(
        val no1: String?,
        val no2: String?,
        val no3: String?,
        val no4: String?,
        val no5: String?,
        val no6: String?,
        val no7: String?,
        val no8: String?,
        val no9: String?,
        val no10: String?,
        val no11: String?,
        val qty1: String?,
        val qty2: String?,
        val qty3: String?,
        val qty4: String,
        val errmsg: String?
    )

    data class RuKuRequest(
        val mode: Int, val barcode: String?, val wk_id: String?, val wk_name: String?,
        val pda: String?, val no1: String?,val no6: String?,val no9: String?, val no10: String?, val no7: String?, val no8: String?,
        val qty2: Int?,
        val qty3: Int?,
        val qty4: Int?,
    )

    data class RuKuResponse(
        val no1: String?,
        val no2: String?,
        val no3: String?,
        val no4: String?,
        val no5: String?,
        val no6: String?,
        val no7: String?,
        val no8: String?,
        val no9: String?,
        val no10: String?,
        val qty1: Int = 0,
        val qty2: Int = 0,
        val qty3: Int = 0,
        val qty4: Int = 0,
        val errmsg: String?
    )

    data class MailChuKuScanRequest(
        val mode: Int,
        val barcode: String?,
        val wk_id: String?,
        val no6: String?,
        val no7: String?,
        val wk_name: String?,
        val pda: String?,
        val no9: String?,
        val no10: String?
    )

    data class MailScanChuKuResponse(
        val no1: String?,
        val no2: String?,
        val no3: String?,
        val no4: String?,
        val no5: String?,
        val no8: String?,
        val no9: String?,
        val no10: String?,
        val qty1: String?,
        val qty2: String?,
        val qty3: String?,
        val qty4: String?,
        var list: List<MailChuKuResponseItem>?,
        val errmsg: String?
    )

    data class MailChuKuResponseItem(
        val id: Long,
        val userId: String?,
        val prodNo: String?,
        var qty: Int,
        var preQty: Int,
        val custId: String?,
        val custName: String?,
        val custPo: String?,
        val itemNo: String,
        val itemDesc: String?,
        val specs: String?,
        val stkQty: Int = 0,
    )

    data class MailChuKuCommitRequest(
        val mode: Int, val wk_id: String?, val no6: String?, val wk_name: String?,
        val pda: String?
    )

    data class MailChuKuCommit(
        val no1: String?, val no2: String?, val no3: String?, val no4: String?,
        val no5: String?, val no8: String?, val no9: String?, val no10: String?, val qty1: String?,
        val qty2: String?, val qty3: String?, val qty4: String?, val errmsg: String?
    )

    data class ShengChangLinLiaoRequest(
        val mode: Int, val barcode: String?, val wk_id: String?, val wk_name: String?,
        val pda: String?, val no1: String?, val no2: String?, val no3: String?,
        val no4: String, val no5: String, val no6: String?, val no7: String,
        val no8: String, val no9: String, val qty1: Int, val qty2: Int, val qty3: Int,
        val qty4: Int
    )

    data class ShengChangLinLiaoResponse(
        val no1: String?,
        val no2: String?,
        val no3: String?,
        val no4: String?,
        val no5: String?,
        val no6: String?,
        val no7: String?,
        val no8: String?,
        val no9: String?,
        val qty1: String?,
        val qty2: String?,
        val qty3: String?,
        val qty4: String?,
        val errmsg:String?
    )

    data class UpdateSalePoTempRequest(val id:Long,val qty:Int,val preQty:Int)

    data class PurchasePOScanRequest(var mode:Int,var barcode:String,var wk_id:String?,var wk_name:String?,
        var pda:String?)

    data class PurchasePOScanResponse(var no1:String?,var no2:String?,var no3:String?,var no4:String?,
        var no5:String?,var no6:String?,var no9:String?,var qty1:String?,var qty2:String?,var price1:String?,
        var list:List<PurchasePOScanResponseTempModule>?,var errmsg:String?)

    data class PurchasePOScanResponseTempModule(var id:Long,var userId:String?,var prodNo:String?,
        var qty:Int,var price:Float,var vendId:String?,var vendName:String?,var poNo:String?,var dePo:String?,
        var artId:String?,var specs:String?)

    data class PurchasePOCommitRequest(var mode:Int,var wk_id:String?,var pda:String?)

    data class PurchasePOCommitResponse(var no1:String?,var no2:String?,var no3:String?,var no4:String?,
        var no5:String?,var no6:String?,var no9:String?,var qty1:String?,var qty2:String?,
        var price1:String?,var errmsg:String?)

    data class UpdateTranPoTempRequest(var id:Long,var qty:Int,var price:Float)

    data class PurchasePODeleteRequest(var id:Long)
    data class TempBean(var wk_id: String?)
}